#pragma strict
//////////////////////////////////////////////////////
///屏幕有关的控制
//////////////////////////////////////////////////////
var isFullScreen:boolean;
var exitFullScreenText:String = "退出全屏";

var enterFullScreenText:String = "进入全屏";

function Start(){
	Screen.fullScreen = isFullScreen;
}

function OnGUI(){
	if(Screen.fullScreen){
		if(GUILayout.Button(exitFullScreenText)){
			Screen.fullScreen = false;
		}
	}else{
		if(GUILayout.Button(enterFullScreenText)){
			Screen.fullScreen = true;
		}
	}
	
}